package com.zmc.lostfound.common.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author zmc
 * @description 自定义注解: 该注解作用下的的属性值必须在指定的范围之中
 */
@Documented
@Constraint(validatedBy = {ValueStringListConstraintValidator.class})
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ValueStringList {

    String message() default "{javax.validation.constraints.NotNull.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    String[] values() default {};

}
